package com.example.com.daervideo.fragments.video;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.com.daervideo.R;

import java.util.ArrayList;

/**
 * Created by i7-1 on 2018/12/8.
 */

class MessageAdapter extends RecyclerView.Adapter {

    private final Context context;
    private ArrayList<String> list;

    public MessageAdapter(Context context, ArrayList<String> tabFragments) {
        this.list = tabFragments;
        this.context = context;
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.item_message, parent, false);
        return new MHolder(view);
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return list == null ? 0 : list.size();
    }

    private class MHolder extends RecyclerView.ViewHolder {
        public MHolder(View view) {
            super(view);
        }
    }
}
